import request from '@/utils/request'

// 查询代表建议列表
export function listSuggestions(query) {
  return request({
    url: '/suggestions/suggestions/list',
    method: 'get',
    params: query
  })
}

// 查询代表建议详细
export function getSuggestions(id) {
  return request({
    url: '/suggestions/suggestions/' + id,
    method: 'get'
  })
}

// 新增代表建议
export function addSuggestions(data) {
  return request({
    url: '/suggestions/suggestions',
    method: 'post',
    data: data
  })
}

// 修改代表建议
export function updateSuggestions(data) {
  return request({
    url: '/suggestions/suggestions',
    method: 'put',
    data: data
  })
}

// 删除代表建议
export function delSuggestions(id) {
  return request({
    url: '/suggestions/suggestions/' + id,
    method: 'delete'
  })
}
